package com.qm;

/**
 * @program: java_se
 * @description: 字节码init
 * @author: wangbo
 * @create: 2023-10-04 15:37
 **/
public class MyInit {
    private String a = "s1";
    {
        String b = "20";
    }

    private int b = 10;
    {
        a = "s2";
    }
     public MyInit(String a,int b){
        this.a = a;
        this.b = b;
     }

    public static void main(String[] args) {
        MyInit myInit = new MyInit("s3", 30);

        System.out.println(myInit.a);
        System.out.println(myInit.b);
    }
}
